package com.hr.service;

import java.util.List;

import com.hr.model.DepartmentModel;
/**
 * 部门管理
 * @author fazhen.zheng
 *
 */
public interface DepartmentService {
	/**
	 * 增加或修改部门
	 * @param departmentModel
	 * @return
	 */
	public boolean editDepartment(DepartmentModel departmentModel);
	/**
	 * 查询所有部门信息
	 * @return
	 */
	public List<DepartmentModel> findAll();
	/**
	 * 按主键查询部门
	 * @param code
	 * @return
	 */
	public DepartmentModel findByPrimaryKey(String code);
	/**
	 * 删除部门
	 * @param code
	 */
	public boolean removeDeparment(String code);
}
